<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="tags" %>
<%@ page language="java" pageEncoding="UTF-8"%>
<tags:layout>
<h1><spring:message code="searchForm.swe.title"/></h1>
<form:form modelAttribute="searchForm">
<div class="dok">
<form:label path="busLine">
	<spring:message code="searchForm.swe.busline"/>
</form:label>:&nbsp;
<form:select path="busLine" items="${links}"/>
<form:errors path="busLine" cssStyle="color:red"></form:errors>
<br/>
</div>
<div class="dok">
<form:label path="fromStation">
	<spring:message code="searchForm.swe.fromStation"/>
</form:label>:&nbsp;
<form:input path="fromStation"/> <form:errors path="fromStation" cssStyle="color:red"></form:errors>
</div>
<div class="dok">
<form:label path="lastStation">
	<spring:message code="searchForm.swe.lastStation"/>
</form:label>:&nbsp;
<form:input path="lastStation"/> <form:errors path="lastStation" cssStyle="color:red"></form:errors>
</div>

<div class="dok">
<form:label path="hour"><spring:message code="searchForm.swe.time"/></form:label>
<form:input path="hour"/>&nbsp;:&nbsp;<form:input path="minute"/><br/>
<form:errors path="hour" cssStyle="color:red"></form:errors>
<form:errors path="minute" cssStyle="color:red"></form:errors>
</div>
<input id="vyhledat" type="submit" value="OK"/>
</form:form> 


<c:if test="${not empty tm}">
	<div id="result">
		<jsp:include page="result.jsp"></jsp:include>
	</div>
</c:if>

</tags:layout>